<script type="text/javascript">

function doDisplayMessage(id){
	if(id=='')
	{
		return;
	}
	$('#dialog').dialog('open');
	$("#dialog").dialog({
				bgiframe: true,
				title: "{MESSAGE.message}"
			});
	$.ajax({
		url: '{URL_SITE}?sMod=message&sAction=view_message',
		type: 'post',
		data: {
				id: id
				},
		success: function( sResponse ) {
			display(sResponse,'view_message');
		},
		error: function(xhr, txtStatus, errorThrown) {
			alert('error ' + xhr.status + ' -- ' + xhr.statusText);
		}
	});
}

</script>
